package com.vanke.devops.domain.domain.users;




import com.vanke.devops.domain.enums.SmsOrCaptchaValidationEnum;

import java.io.Serializable;

/**
 * 作者: 李剑洪
 * 时间: 17/8/8
 */
public class CaptchaOrSmsCode implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 验证码
     */
    private String code;
    /**
     * 验证类型
     */
    private SmsOrCaptchaValidationEnum.ValidaionType validationType;
    /**
     * 当前时间戳
     */
    private Long timestamp;
    private String mobile;

    public CaptchaOrSmsCode(String code, SmsOrCaptchaValidationEnum.ValidaionType validationType, Long timestamp, String mobile) {
        this.code = code;
        this.validationType = validationType;
        this.timestamp = timestamp;
        this.mobile = mobile;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public SmsOrCaptchaValidationEnum.ValidaionType getValidationType() {
        return validationType;
    }

    public void setValidationType(SmsOrCaptchaValidationEnum.ValidaionType validationType) {
        this.validationType = validationType;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
}
